package com.danskin.wechat.service;

import java.util.List;
import java.util.Map;

import com.danskin.wechat.entity.RelFansTag;
import com.danskin.wechat.entity.WxTagInfo;
import com.danskin.wechat.util.Page;

public interface WxTagInfoService {
	
	WxTagInfo getWxTagInfoByByPrimaryKey(Integer id);
	/**
	 * 所有标签
	 * @return
	 */
	List<WxTagInfo> getAllWxTagInfo();
	
	/**
	 * 根据粉丝 获取已经打上的标签
	 * @param fansId
	 * @return
	 */
	List<WxTagInfo> getUsedFansTag(Map<String,Object> map);
	
	
	int insertRelFansTagBatch(List<RelFansTag> fansTagList);
	
	int deleteRelFansTagBatch(List<RelFansTag> fansTagList);
	/**
	 * 分页查询  标签列表
	 * @param page
	 * @return
	 */
	List<WxTagInfo> listPageWxTagInfo(Page page);
	
	/**
	 * 标签修改
	 */
	int updateWxTagInfo(Integer id,String tagName,String token,Integer tagId);
	
	/**
	 * 创建标签
	 * @param tagName
	 * @param token
	 * @return
	 */
	int saveWxTagInfo(String tagName,String token);
	
	/**
	 * 
	 */
	int deleteWxTagInfo(Integer id,Integer tagId,String token);
	
	List<WxTagInfo> selectWxTagInfoByFansIdExclude(Map<String,Object> map);
}
